package org.jeecg.modules.flow.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.flow.entity.ActHiProcessInstance;
import org.jeecg.modules.flow.vo.HistoryProcessInstanceVo;

/**
 * @Description: actProcessInstance
 * @Author: zzq
 * @Date: 2021-12-29
 * @Version: V1.0
 */
public interface ActHiProcessInstanceMapper extends BaseMapper<ActHiProcessInstance> {

    /**
     * 分页查询历史流程实例信息
     *
     * @param wrapper
     * @param page
     * @return
     */
    Page<HistoryProcessInstanceVo> queryHistoricProcessInstances(@Param(Constants.WRAPPER) Wrapper<ActHiProcessInstance> wrapper, Page<HistoryProcessInstanceVo> page);

}
